package com.graphsql.gamesdk.callback;

import java.util.Map;

public interface LoginCallback {

	/**
	 * Login callback class. This method will be invoked whether the player
	 * login success or not. And the game developer can only deal with the
	 * situation that the player login success.
	 * 
	 * @param code
	 *            0 means login success, other values mean login failure.
	 *            1 means the player close the dialog.
	 *            -1 means other reason.
	 * @param message
	 *            if login success, the message is blank. if login failure, the
	 *            message will be returned by the error message.
	 * @param data
	 *            if login success, all data returned by this map.
	 */
	public void callback(int code, String message, Map<String, String> data);
}
